/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.tvunetworks.service;

import com.tvunetworks.model.Order;
import java.util.List;
import javax.jws.WebService;

/**
 *
 * @author michael
 */
@WebService
public interface OrderService {

    /**
     * Retrieves a Order by orderId.  An exception is thrown if order not found
     *
     * @param orderId the identifier for the order
     * @return Order
     */
    Order getOrder(Integer orderId);

    /**
     * 
     * @param username
     * @return
     */
    List<Order> getOrderByUsername(String username);

    /**
     * 
     * @param order
     */
    void insertOrder(Order order);
}
